package com.hzqx.syndata.aop;

import com.hzqx.syndata.aop.annotion.GlobalErrorCatch;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author yinzhiping
 */
@RestController
public class TestAopController {
    @GlobalErrorCatch
    @RequestMapping("/aop")
    public String getData(){
        int a = 1/1;
        return a+"测试的结果";
    }
}
